package com.xiaoh.dormitoryrepairreportbackend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * AI服务配置
 */
@Configuration
@ConfigurationProperties(prefix = "ai.zhipu")
@Data
public class AiConfig {
    
    /**
     * API密钥
     */
    private String apiKey;
    
    /**
     * API基础URL
     */
    private String baseUrl = "https://open.bigmodel.cn/api/paas/v4/chat/completions";
    
    /**
     * 模型名称
     */
    private String model = "glm-4-air-250414";
    
    /**
     * 请求超时时间（秒）
     */
    private int timeout = 120;
    
    /**
     * 最大重试次数
     */
    private int maxRetries = 3;
}
